package com.java.WORK;
/**
 * comparator的使用方法
 * 
 * @author 小敏
 *
 */
public class Student {
	// 属性
	private String name;
	private String num;
	private double stuscore;

	// 有参的构造方法
	public Student(String name, String num, double stuscore) {
		super();
		this.name = name;
		this.num = num;
		this.stuscore = stuscore;
	}

	// 默认的构造方法
	public Student() {
		super();
		
	}

	// 行为：输出学生信息
	public void printMe() {
		System.out.println("姓名：" + name + "， 学号：" + num + "，分数：" + stuscore);
	}

	// getter，setter方法

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public double getStuscore() {
		return stuscore;
	}

	public void setStuscore(double stuscore) {
		this.stuscore = stuscore;
	}

}
